package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 sys_order
 * 
 * @author ruoyi
 * @date 2024-04-03
 */
public class SysOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private String id;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderNo;

    /** 商家id */
    @Excel(name = "商家id")
    private String businessId;

    /** 停车场id */
    @Excel(name = "停车场id")
    private String parkingId;

    /** 车位号 */
    @Excel(name = "车位号")
    private String parkingSpacesId;

    /** 用户id */
    @Excel(name = "用户id")
    private String memberId;

    /** 预约消费开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预约消费开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date consumptionStartTime;

    /** 预约消费结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预约消费结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date consumptionEndTime;

    /** 实际消费结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "实际消费结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date actualConsumptionEndTime;

    /** 预约消费小时 */
    @Excel(name = "预约消费小时")
    private Long consumptionHour;

    /** 实际消费小时 */
    @Excel(name = "实际消费小时")
    private Long actualHour;

    /** 预约消费金额 */
    @Excel(name = "预约消费金额")
    private BigDecimal preConsumptionAmount;

    /** 实际消费金额 */
    @Excel(name = "实际消费金额")
    private BigDecimal actualConsumptionAmount;

    /** 0=未支付 1=已支付预付款 2=消费中 3=已支付尾款 4=已评价 5=取消订单 */
    @Excel(name = "0=未支付 1=已支付预付款 2=消费中 3=已支付尾款 4=已评价 5=取消订单")
    private Integer status;

    /** 取消订单手续费 */
    @Excel(name = "取消订单手续费")
    private BigDecimal cancelOrderFees;

    /** 取消订单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "取消订单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date cancelOrderTime;

    /** 删除标志 */
    private String delFlag;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setOrderNo(String orderNo) 
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }
    public void setBusinessId(String businessId)
    {
        this.businessId = businessId;
    }

    public String getBusinessId()
    {
        return businessId;
    }
    public void setParkingId(String parkingId)
    {
        this.parkingId = parkingId;
    }

    public String getParkingId()
    {
        return parkingId;
    }
    public void setParkingSpacesId(String parkingSpacesId)
    {
        this.parkingSpacesId = parkingSpacesId;
    }

    public String getParkingSpacesId()
    {
        return parkingSpacesId;
    }
    public void setMemberId(String memberId)
    {
        this.memberId = memberId;
    }

    public String getMemberId()
    {
        return memberId;
    }
    public void setConsumptionStartTime(Date consumptionStartTime) 
    {
        this.consumptionStartTime = consumptionStartTime;
    }

    public Date getConsumptionStartTime() 
    {
        return consumptionStartTime;
    }
    public void setConsumptionEndTime(Date consumptionEndTime) 
    {
        this.consumptionEndTime = consumptionEndTime;
    }

    public Date getConsumptionEndTime() 
    {
        return consumptionEndTime;
    }
    public void setActualConsumptionEndTime(Date actualConsumptionEndTime) 
    {
        this.actualConsumptionEndTime = actualConsumptionEndTime;
    }

    public Date getActualConsumptionEndTime() 
    {
        return actualConsumptionEndTime;
    }
    public void setConsumptionHour(Long consumptionHour) 
    {
        this.consumptionHour = consumptionHour;
    }

    public Long getConsumptionHour() 
    {
        return consumptionHour;
    }
    public void setActualHour(Long actualHour) 
    {
        this.actualHour = actualHour;
    }

    public Long getActualHour() 
    {
        return actualHour;
    }
    public void setPreConsumptionAmount(BigDecimal preConsumptionAmount) 
    {
        this.preConsumptionAmount = preConsumptionAmount;
    }

    public BigDecimal getPreConsumptionAmount() 
    {
        return preConsumptionAmount;
    }
    public void setActualConsumptionAmount(BigDecimal actualConsumptionAmount) 
    {
        this.actualConsumptionAmount = actualConsumptionAmount;
    }

    public BigDecimal getActualConsumptionAmount() 
    {
        return actualConsumptionAmount;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setCancelOrderFees(BigDecimal cancelOrderFees) 
    {
        this.cancelOrderFees = cancelOrderFees;
    }

    public BigDecimal getCancelOrderFees() 
    {
        return cancelOrderFees;
    }
    public void setCancelOrderTime(Date cancelOrderTime) 
    {
        this.cancelOrderTime = cancelOrderTime;
    }

    public Date getCancelOrderTime() 
    {
        return cancelOrderTime;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderNo", getOrderNo())
            .append("businessId", getBusinessId())
            .append("parkingId", getParkingId())
            .append("parkingSpacesId", getParkingSpacesId())
            .append("memberId", getMemberId())
            .append("consumptionStartTime", getConsumptionStartTime())
            .append("consumptionEndTime", getConsumptionEndTime())
            .append("actualConsumptionEndTime", getActualConsumptionEndTime())
            .append("consumptionHour", getConsumptionHour())
            .append("actualHour", getActualHour())
            .append("preConsumptionAmount", getPreConsumptionAmount())
            .append("actualConsumptionAmount", getActualConsumptionAmount())
            .append("status", getStatus())
            .append("cancelOrderFees", getCancelOrderFees())
            .append("cancelOrderTime", getCancelOrderTime())
            .append("delFlag", getDelFlag())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
